<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title>${post.title}</title>
</head>
<body>
    <div id="post_${post.id}">
        <h2 py:content="post.title">Post title here</h2>
        <div class="postmeta">
            Posted on <span class="postdate" py:content="post.post_date">01/01/01</span>
        </div>
        <div class="content" py:content="XML(post.html_content)">
            This is where your post's content is displayed.
        </div>

        <div class="comments">
            <div py:for="comment in post.comments" id="comment_${comment.id}">
                <div class="commentmeta">
                    Comment by
                    <span py:if="comment.author_url" py:strip=''>
                        <a href="${comment.author_url}" py:content="comment.author_name">Author with link</a>
                    </span>
                    <span py:if="not comment.author_url" py:strip='' py:content="comment.author_name">
                        Author without link
                    </span>
                    on
                    <span py:content="comment.comment_date">01/01/01</span>
                </div>
                <div class="content" py:content="comment.content">
                    Comment content here.
                </div>        
            </div>
            
            <div id="commentform">
                <h3>Add your comments</h3>
                ${comment_form(value=dict(post_id=post.id))}
            </div>
        </div>
    </div>
</body>
</html>